package org.meb.spdwldr.core;


import lombok.Getter;
import lombok.NonNull;

@Getter
public class Query<T> {

	@NonNull
	private T entity;
	private SortOrder sortOrder;

	public Query(T entity) {
		this.entity = entity;
	}

	public void setSortOrder(SortOrder sortOrder) {
		if (sortOrder == null) {
			this.sortOrder = new SortOrder();
		} else {
			this.sortOrder = sortOrder;
		}
	}
}
